import { defineStore } from "pinia";

// 將其命名為useXXXStore，就像vue3的composable一樣
const useStore = defineStore("main", {
    state: () => ({
        counter: 4,
        name: 'Sonder',
    }),
    actions: {},
    getters: {
        doubleCount(state) {
            return state.counter * 2
        },
    },
});

export default useStore;
